package com.mymvc.VO;

/**
 * ClassName: User
 * Package: com.mymvc.VO
 * Description:
 *
 * @Author 刘英杰
 * @Create 2025/2/8 21:47
 * @Version 1.0
 */

public class User {
    private String name;
    private int age;
    private City city;

    public User() {
    }

    public User(String name, int age, City city) {
        this.name = name;
        this.age = age;
        this.city = city;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", city=" + city +
                '}';
    }
}
